package cn.yuitstyle.license.starter.manage;

import de.schlichtherle.license.LicenseManager;
import de.schlichtherle.license.LicenseParam;

/**
 * 用于服务器硬件信息校验及License管理类
 */
public class LicenseManagerHolder {

    private static LicenseManager licenseManager;

        
    public static synchronized LicenseManager getLicenseManager(LicenseParam licenseParam) {

        if (null == licenseManager) {

            try {

                licenseManager = new LicenseManager(licenseParam);

            } catch (Exception e) {

                e.printStackTrace();

            }

        }

        return licenseManager;

    }
}
